
// <copyright file="WizardTabControl.cs" company="Subhadra Software Solutions">
//   
// </copyright>
// <summary>
//   Class WizardTabControl.
// </summary>

namespace SubhadraSolutions.Sharp.Utils.Windows.Forms
{
    using System;
    using System.Windows.Forms;

    /// <summary>
    ///     Class WizardTabControl.
    /// </summary>
    public class WizardTabControl : TabControl
    {
        #region Methods

        /// <summary>
        /// This member overrides <see cref="M:System.Windows.Forms.Control.WndProc(System.Windows.Forms.Message@)"/>.
        /// </summary>
        /// <param name="m">
        /// A Windows Message Object.
        /// </param>
        protected override void WndProc(ref Message m)
        {
            if (m.Msg == 0x1328 && !this.DesignMode)
            {
                m.Result = IntPtr.Zero;
            }
            else
            {
                base.WndProc(ref m);
            }
        }

        #endregion Methods
    }
}
